package la.iok.hzsvn.lewin.movie.cloud.model;

import java.util.Objects;

/**
 * 忘记密码重新找回密码参数
 */
public class ForgotSetPasswordParam {
    /**
     * 找回密码的手机号
     */
    private String phoneNumber;
    /**
     * 验证码，通过设备获取的验证码
     */
    private String code;
    /**
     * 新密码
     */
    private String newPassword;

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ForgotSetPasswordParam param = (ForgotSetPasswordParam) o;
        return Objects.equals(phoneNumber, param.phoneNumber) && Objects.equals(code, param.code) && Objects.equals(newPassword, param.newPassword);
    }

    @Override
    public int hashCode() {
        return Objects.hash(phoneNumber, code, newPassword);
    }
}
